﻿using System;
using System.Globalization;
using System.Net.NetworkInformation;
using System.Windows;
using MetroGA.Core;

namespace MetroGA.Wp8
{
	internal class InformationProvider : IPlatformInformationProvider
	{
		#region Implementation of IPlatformInformationProvider

		public Tuple<int, int> Resolution { get { return new Tuple<int, int>((int)Application.Current.Host.Content.ActualWidth, (int)Application.Current.Host.Content.ActualHeight); } }
		public string Culture { get { return CultureInfo.CurrentCulture.Name.ToLower(); } }
		public string PlatformName { get { return "Windows Phone"; } }
		public string PlatformVersion { get { return "Windows Phone 8"; } }
		public bool IsNetworkAvailable
		{
			get
			{
				return NetworkInterface.GetIsNetworkAvailable();
			}
		}

		#endregion
	}
}